package com.aorise.model.diagnosis;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author:cat
 * @Desicription: 诊断任务修改入参实体类
 * @Date:Created in 2019-06-24
 * @Modified By:
 */
@Data
@ApiModel
public class DiagnosisPlanEditVO {

    @ApiModelProperty (value = "主键")
    private Integer id;

    @ApiModelProperty (value = "任务名称")
    @NotNull(message = "任务名称不能为空")
    private String pName;

    @ApiModelProperty (value = "诊断类型：1自动巡检，2人工巡检")
    private Integer pType;

    @ApiModelProperty (value = "轮巡次数")
    private Integer round;

    @ApiModelProperty (value = "检测服务器：1,2,3")
    private Integer serverType;

    @ApiModelProperty (value = "执行周期：1每天，2每周，3每月")
    private Integer executeType;

    @ApiModelProperty (value = "周期数字")
    private Integer flag;

    @ApiModelProperty (value = "开始时间")
    private String startTime;

    @ApiModelProperty (value = "结束时间")
    private String endTime;

    @ApiModelProperty (value = "任务状态：1开启，2关闭")
    private Integer isOpen;

    @ApiModelProperty (value = "状态")
    private Integer state;

    @ApiModelProperty (value = "修改人")
    @NotNull(message = "修改人不能为空")
    private Integer editUser;

    @ApiModelProperty (value = "诊断任务参数信息")
    @NotNull(message = "诊断任务参数信息不能为空")
    private List<DiagnosisParamAddVO> diagnosisParamAddVOS;

    @Override
    public String toString() {
        return "DiagnosisPlanEditVO{" +
                ", id='" + id + '\'' +
                ", pName='" + pName + '\'' +
                ", pType='" + pType + '\'' +
                ", round='" + round + '\'' +
                ", serverType='" + serverType + '\'' +
                ", executeType='" + executeType + '\'' +
                ", flag='" + flag + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", isOpen='" + isOpen + '\'' +
                ", state='" + state + '\'' +
                ", editUser='" + editUser + '\'' +
                ", diagnosisParamAddVOS='" + diagnosisParamAddVOS + '\'' +
                '}';
    }
}
